﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Inventory_Target_Product_List.aspx.cs" MasterPageFile="~/MasterPage.master"
    Inherits="Inventory_Target_Product_List" %>

<%@ Register Src="../UserControl/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>用户产品维护</title>
    <script src="../JavaScript/empchecks.js" type="text/javascript"></script>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle" colspan="6">
                    搜索选项
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    制造商:
                </td>
                <td nowrap="nowrap">
                    <asp:DropDownList runat="server" ID="ddlManu" Width="130" AutoPostBack="true" OnSelectedIndexChanged="ddlManu_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">
                    品类:
                </td>
                <td nowrap="nowrap">
                    <asp:DropDownList runat="server" ID="ddlCategroy" AutoPostBack="true" Width="130"
                        OnSelectedIndexChanged="ddlCategroy_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">
                    品牌:
                </td>
                <td nowrap="nowrap">
                    <asp:DropDownList runat="server" ID="ddlBrand" Width="130">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    分配类型:
                </td>
                <td nowrap="nowrap" colspan="4">
                    <asp:DropDownList runat="server" ID="ddlSelected" Width="130">
                        <asp:ListItem Text="--所有--" Value="0"></asp:ListItem>
                        <asp:ListItem Text="--已分配--" Value="1"></asp:ListItem>
                        <asp:ListItem Text="--未分配--" Value="2"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:ValidationSummary runat="server" ID="vs" />
                </td>
                <td class="buttonarea" colspan="3">
                    <asp:Button ID="btnQuery" runat="server" class="wsd_button2" Text="查  询" CausesValidation="false"
                        OnClick="btnQuery_Click" />
                    &nbsp;&nbsp;
                    <input type="button" class="wsd_button2" size="47" value="重  置" name="reset" onclick="clearForm('form1')" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle" width="100%">
                    产品列表 库存目标计算公式:<asp:Label runat="server" ID="lblListName"></asp:Label>
                </td>
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="gvChannelType" runat="server" DataKeyNames="ID" AutoGenerateColumns="false"
                        OnRowDataBound="Grid_RowDataBound" EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true"
                        EmptyDataRowStyle-HorizontalAlign="Center" EnableEmptyContentRender="true" AllowPaging="True"
                        PageSize="50">
                        <HeaderStyle CssClass="titlist" />
                        <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:TemplateField Visible="false">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblItemID" Text='<%# Eval("ItemID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="产品代码" DataField="ProductCode" />
                            <asp:BoundField HeaderText="产品名称" DataField="ProductName" />
                            <asp:BoundField DataField="ShortProductName" HeaderText="产品简称" Visible="false" />
                            <asp:BoundField DataField="CategoryName" HeaderText="品类" ReadOnly="true" />
                            <asp:BoundField DataField="BrandName" HeaderText="品牌" ReadOnly="true" />
                            <asp:BoundField DataField="ManufactureName" HeaderText="制造商" ReadOnly="true" />
                            <asp:BoundField DataField="PIECE_PRICE" HeaderText="支价" DataFormatString="{0:N2}" />
                            <asp:BoundField DataField="CASE_PRICE" HeaderText="箱价" DataFormatString="{0:N2}" />
                            <asp:BoundField DataField="WEIGHT" HeaderText="重量" DataFormatString="{0:N2}" />
                            <asp:BoundField DataField="VOLUME" HeaderText="体积" DataFormatString="{0:N2}" />
                            <asp:BoundField DataField="DENOMINATOR" HeaderText="1箱?支" />
                            <asp:BoundField DataField="" HeaderText="库存目标因子" ReadOnly="true" />
                            <asp:TemplateField HeaderText="P_SKU">
                                <ItemTemplate>
                                    <asp:TextBox runat="server" ID="txtP_SKU" MaxLength="2" Width="60" Text='<%# string.Format("{0:N}",Eval("P_SKU"))  %>'></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="revCasePrice" runat="server" Text="*" ErrorMessage="P_SKU应为数字"
                                        ValidationExpression="^(\d{1,3}(,\d\d\d)*(\.\d+)?|\d+(\.\d+)?)$" ControlToValidate="txtP_SKU"></asp:RegularExpressionValidator>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ItemStyle-Width="50">
                                <HeaderTemplate>
                                    <asp:CheckBox runat="server" ID="HeaderLevelCheckBox" onclick="SelectAllCheckboxes(this)" />全选
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="Selected" runat="server" Checked='<%# Convert.ToBoolean(Eval("Selected")) %>' />
                                </ItemTemplate>
                                <ItemStyle Width="50px"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings Visible="true" />
                    </asp:GridView>
                    <br />
                    <uc1:GridPager ID="GridPager1" runat="server" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle">
                    操作选项
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <asp:Button ID="btnSubmiet" runat="server" class="wsd_button2" Text="提  交" OnClick="btnSubmit_Click" />&nbsp;&nbsp;
                    <input class="wsd_button2" onclick="location.href='Inventory_Target_List.aspx'" type="button"
                        value="返  回" />
                </td>
            </tr>
        </table>
    </div>
 </asp:Content>

